package io.renren.modules.lanling.dao;

import io.renren.common.utils.Query;
import io.renren.modules.lanling.entity.CertificateEntity;
import com.baomidou.mybatisplus.mapper.BaseMapper;
import io.renren.modules.lanling.entity.SearchEntity;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * 证件表
 *
 * @author LANLING
 * @email lanling@gmail.com
 * @date 2018-11-26 15:50:09
 */
public interface CertificateDao extends BaseMapper<CertificateEntity> {
    List<CertificateEntity> queryList(Query query);

    Integer queryTotal(Query query);

    void deleteByUserId(@Param("studentId") long studentId);

    void updateCertificate(Map<String, Object> params);

    void deleteByAllSubjectId(List<Integer> idList);

    void deleteByUserAndCert(Map<String, Object> params);

}
